<template>
  <view class="">
    <!-- <view class="">
       <view class="uni-page-head" v-if="titleFlag">
         <image
             class="common-title-img"
             style="left: 20rpx"
             :src="require('../../static/imges/fanhui.png')"
             @click="back()"
         ></image>
         <view class="uni-page-head-title"> 到货确认详情页</view>
         <image style="width: 50rpx;height: 50rpx;position:absolute;right: 50rpx;" @click="sousk"
                src="/static/imges/fangdajing.png"></image>
       </view>
       <view v-if="titleFlag" style="margin-top: 98rpx"></view>
     </view> -->
    <!-- 详情 -->
    <view class="">
      <!-- 头部父项目介绍 -->
      <!-- <button @click="ceshi">测试</button> -->
      <view class="listTitle">
        <view class="type"
        >项目名称：
          <text :selectable="true">{{
              titleList.prjName || titleList.subPrjName
            }}
          </text>
        </view
        >
        <view class="type"
        >项目编码：
          <text :selectable="true">{{
              titleList.prjCode || titleList.subPrjCode
            }}
          </text>
        </view
        >
        <view class="type"
        >站址名称：
          <text :selectable="true">{{
              titleList.siteName || titleList.subSiteName
            }}
          </text>
        </view
        >
        <view class="type"
        >站址编码：
          <text :selectable="true">{{
              titleList.siteId || titleList.subSiteId
            }}
          </text>
        </view
        >
          <view class="type">站址经纬度：
              <text :selectable="true">{{titleList.siteLongitude + ',' + titleList.siteDimension}}</text>
          </view>
        <view class="listTitle-scheme">
          <button style="width:180rpx ;height:50rpx ;font-size: 26rpx;line-height: 50rpx" type="warn" size="mini" @click="scheme">
            设计方案
          </button>
        </view>
      </view>
      <!-- 滑块部分 -->
      <view style="margin-top: -10rpx;">
        <swiper-item class="swiper-item">
          <scroll-view scroll-y :style="'height:' + contentHeight" style="background-color: #f7f8fa;">
            <u-subsection
                :list="listTabs"
                :current="curNow1"
                v-if="showTabs"
                @change="sectionChange1"
            >
            </u-subsection>
            <!-- 主材模块 -->
            <view class="" v-show="curNow1 == 0">
              <view
                  v-show="prjInfo == []"
                  style="
		            padding: 8rpx 0 8rpx 22rpx;
		            font-size: 24rpx;
		            color: red;

		            font-weight: bold;
		          "
              >
                <text>无主材物资数据，请确认物资是否已申领并出库！</text>
              </view>
              <view
                  v-show="prjInfo != []"
                  style="
		            padding: 8rpx 0 8rpx 22rpx;
		            font-size: 24rpx;
		            font-weight: bold;
		          "
              >
                <text
                >如未找到对应数据，请先对所需源头赋码标识为“是”的主设备、辅材物资进行申领、出库操作！
                </text
                >
                <view style="width: 92%;text-align:right;position: relative;">
                  <text style="font-size: 22rpx;color: #007AFF">
                    <text @click="illustrate">贴签说明</text>
                    <image style="width: 32rpx;height: 32rpx;position:absolute;
		  				  					        top:12rpx;right: -32rpx"
                           src="@/static/imges/wenhaoer.png" mode=""></image>
                  </text>
                </view>
              </view>
              <view
                  v-show="prjInfo.length !=0"
                  v-if="nosousk"
                  style="
		  				    padding: 0 20rpx 15rpx 20rpx;
		  				  "
              >
                <view class="searchbox-so">
                  <view class="u-search-inner">
                    <u-icon name="search" color="#909399" :size="28"></u-icon>
                    <u-input v-model="searchValuea" height="30" placeholder="  请输入物料名称/物料编码"/>
                  </view>
                </view>
              </view>

              <uni-collapse>
                <uni-collapse-item
                    class="collapseStyle"
                    title-border="none"
                    :border="false"
                    :open="nofor"
                    v-for="(item, index) in prjInfoer"
                    :key="index"
                >
                  <template v-slot:title>
                    <view class="type">
                      <text :selectable="true"> {{ item.categoryName }}</text>
                    </view>
                    <view class="type">
                      物料编码：
                      <text :selectable="true">{{ item.categoryCode }}</text>
                    </view>
                    <view
                        class=""
                        style="
		                  display: flex;
		                  align-items: center;
		                  justify-content: space-between;
		                  margin-top: 0rpx;
						  position: relative;
		                "
                    >
                      <view class="type" style="margin-right: 129rpx">
                        需赋码贴签数量：
                        <text style="font-weight: bold">{{
                            item.osAmount - item.labelCodeAmount
                          }}
                        </text>
                      </view>
                      <!--  v-if="
		                    item.osAmount - item.labelCodeAmount> 0 &&
		                    titleList.isOldPrj == 0
		                  " -->
                      <button
                          v-if="
		                   item.osAmount - item.labelCodeAmount> 0 &&
		                   titleList.isOldPrj == 0
		                  "
                          v-debounce="() => toLabel(item.osDetailId)"
                          style="margin: 0 30rpx 0 0; padding: 0 10rpx;width: 140rpx;
						  height: 60rpx;font-size: 26rpx;position: absolute;right:0;top: -10rpx;"
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                      <button
                          v-if="
		                    item.osAmount - item.labelCodeAmount> 0 &&
		                    titleList.isOldPrj == 1
		                  "
                          v-debounce="() => notice"
                          style="
		                    margin: 0 30rpx 0 0;
		                    padding: 0 10rpx;
		  					width: 140rpx;height: 60rpx;font-size: 26rpx;
		                    color: grey;
		                    border-color: grey;
							position: absolute;right:0;top: -10rpx;
		                  "
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                      <!-- <button disabled v-if="(item.osAmount-item.labelCodeAmount) < 0 || (item.osAmount-item.labelCodeAmount) == 0"  style="margin: 0 30rpx 0 0;padding: 0 10rpx;" type="warn" :plain="true" size="mini">赋码贴签</button> -->
                      <!-- 撑空间的盒子 -->
                      <view
                          class=""
                          style="width: 150rpx"
                          v-if="
		                    item.osAmount - item.labelCodeAmount < 0 ||
		                    item.osAmount - item.labelCodeAmount == 0
		                  "
                      ></view>
                    </view>
                    <view
                        class=""
                        style="
		                  display: flex;
		                  align-items: center;
		                  justify-content: space-between;
		                "
                    >
                      <view class="type" style="margin-right: 20rpx">
                        已到货确认数量：
                        <text style="font-weight: bold">{{
                            item.labelCodeBoundAmount
                          }}
                        </text>
                      </view>
                      <view class="type" style="margin-right: 20rpx"
                      >待到货确认数量：
                        <text style="font-weight: bold">{{
                            item.osAmount - item.labelCodeBoundAmount
                          }}
                        </text>
                      </view
                      >

                    </view>
                    <view class="type" style="margin-right: 129rpx" v-if="false">
                      出库总量：
                      <text style="font-weight: bold">{{
                          item.osAmount
                        }}
                      </text>
                    </view>
                    <view class="type" style="margin-right: 20rpx">
                      供应商名称：
                      <text style="font-weight: bold">{{
                           item.supplier
                        }}
                      </text>
                    </view>
                    <view class="type" style="margin-right: 129rpx;width: 100%;">
                      出库明细编号：
                      <text style="font-weight: bold">{{
                          item.osDetailId
                        }}
                      </text>
                    </view>
                  </template>
                  <view class="content" style="height: auto">
                    <view style="width: 100%;" v-if="item.osAmount - item.labelCodeBoundAmount!=0">
                      <view @click="Confirmed(index,1)" v-if="item.osAmount - item.labelCodeBoundAmount!=0"
                            style="width: 100%;background-color: white;padding: 5rpx 10rpx;margin-bottom: 0rpx;border-radius:6rpx;display: flex;justify-content: space-between;">
                        <view style="display: flex;font-size: 30rpx;font-weight:bold;margin-bottom: 0rpx;">
                          <view style="width: 24rpx;">
                            <view
                                style="width: 12rpx; height: 40rpx;background-color: #EB4B4B;margin-top: 8rpx;border-radius:6rpx">
                            </view>
                          </view>
                          未确认
                        </view>
                        <view style="width: 80rpx;height: 50rpx;margin-top: 5rpx;">
                          <image v-if="arrowheada[index].unfold" style="left: 20rpx;width: 30rpx;height: 30rpx;"
                                 :src="require('@/static/imges/up.png')"></image>
                          <image v-if="!arrowheada[index].unfold" style="left: 20rpx;width: 30rpx;height: 30rpx;"
                                 :src="require('@/static/imges/down.png')"></image>
                        </view>
                      </view>
                      <view v-if="arrowheada[index].unfold">
                        <u-table :th-style="{ height: '300px' }">
                          <u-tr>
                            <u-th width="32%">资源资产编码</u-th>
                            <u-th width="30%">标签ID</u-th>
                            <u-th aling="center">操作</u-th>
                          </u-tr>
                          <u-tr
                              v-for="(item1, index) in item.labelCode"
                              v-if="item1.isBound == 0"
                              :key="index"
                          >
                            <u-td width="32%" style="width: 20%; overflow: hidden">
                              <text :selectable="true">{{
                                  item1.resourceAssetCode || "无"
                                }}
                              </text>
                            </u-td>
                            <u-td width="30%" style="width: 33.3%; overflow: hidden">
                              <text :selectable="true" style="color: #007AFF;"
                                    @click="schemeert(item1.resourceAssetCode,item1.labelId)">
                                {{ (item1.labelId != null && item1.resourceAssetCode != null) ? item1.labelId : "" }}
                              </text>
                              <text :selectable="true" style="color: black;">
                                {{
                                  (item1.labelId == null || item1.resourceAssetCode == null) ? item1.labelId || "无" : ""
                                }}
                              </text>
                            </u-td>
                            <u-td width="38%">
                              <view

                                  class=""
                                  style="
										text-align: center; box-sizing: border-box;display:flex;justify-content: space-evenly;"
                              >

                                <!-- <view  @click="toSignChange(item, item1)" class="jiebangbiaoqian">
															 换签
														</view> -->
                                <view v-if="item1.labelId!=null && +item1.ifOldLabel ===0"
                                      @click="toSignChangeer(1,item1.labelId,item1.resourceAssetCode)"
                                      class="jiebangbiaoqian">
                                  解绑标签
                                </view>
                                <view v-else-if="+item1.ifOldLabel ===1" @click.stop="toSignChange(item, item1)" class="jiebangbiaoqian">
                                  换签
                                </view>
                                <text v-else>无</text>
                              </view>

                            </u-td>
                          </u-tr>
                        </u-table>
                      </view>
                    </view>
                    <view style="width: 100%;" v-if="item.labelCodeBoundAmount!=0">
                      <view @click="Confirmed(index,2)" v-if="item.labelCodeBoundAmount!=0"
                            style="width: 100%;background-color: white;padding: 5rpx 10rpx;margin-bottom: 0rpx;border-radius:6rpx;display: flex;justify-content: space-between;">
                        <view style="display: flex;font-size: 30rpx;font-weight:bold;margin-bottom: 0rpx;">
                          <view style="width: 24rpx;">
                            <view
                                style="width: 12rpx; height: 40rpx;background-color: #EB4B4B;margin-top: 8rpx;border-radius:6rpx">
                            </view>
                          </view>
                          已确认
                        </view>
                        <view style="width: 80rpx;height: 50rpx;margin-top: 5rpx;">
                          <image v-if="arrowheada[index].unfolder" style="left: 20rpx;width: 30rpx;height: 30rpx;"
                                 :src="require('@/static/imges/up.png')"></image>
                          <image v-if="!arrowheada[index].unfolder" style="left: 20rpx;width: 30rpx;height: 30rpx;"
                                 :src="require('@/static/imges/down.png')"></image>
                        </view>
                      </view>
                      <view v-if="arrowheada[index].unfolder">
                        <u-table :th-style="{ height: '300px' }">
                          <u-tr>
                            <u-th width="32%">资源资产编码</u-th>
                            <u-th width="30%">标签ID</u-th>
                            <u-th aling="center">操作</u-th>
                          </u-tr>
                          <u-tr
                              v-for="(item1, index) in item.labelCode"
                              v-if="item1.isBound !=0"
                              :key="index"
                          >
                            <u-td width="32%" style="width: 20%; overflow: hidden">
                              <text :selectable="true">{{
                                  item1.resourceAssetCode || "无"
                                }}
                              </text>
                            </u-td>
                            <u-td width="30%" style="width: 33.3%; overflow: hidden">
                              <text :selectable="true" style="color: #007AFF;"
                                    @click="schemeert(item1.resourceAssetCode,item1.labelId)">
                                {{ (item1.labelId != null && item1.resourceAssetCode != null) ? item1.labelId : "" }}
                              </text>
                              <text :selectable="true" style="color: black;">
                                {{
                                  (item1.labelId == null || item1.resourceAssetCode == null) ? item1.labelId || "无" : ""
                                }}
                              </text>
                            </u-td>
                            <u-td width="38%">
                              <view
                                  class=""
                                  style="text-align: center; box-sizing: border-box;display:flex;justify-content: space-evenly;"
                              >
                                <!-- <button
														  @click.stop="toLabeler(item.osDetailId)"
														  style=" padding: 0 0rpx;width: 130rpx;height: 40rpx;font-size: 26rpx;"
														  type="warn"
														  :plain="true"
														  size="mini"
														>
														  解绑
														</button> -->
                                <view @click="toSignChange(item, item1)" class="jiebangbiaoqian">
                                  换签
                                </view>

                                <view v-if="Sinformation" @click="toSignChangeimg(item,item1)" class="jiebangbiaoqian">
                                  查看照片
                                </view>
                                <!-- <uni-tag
								          @click="toSignChange(item, item1)"
								          text="换签"
								          type="error"
								          inverted
								          style="
								            width: 120rpx;
								            height: 50rpx;
								            line-height: 50rpx;
								            display: inline;
								          "
								        ></uni-tag> -->
                              </view>
                            </u-td>
                          </u-tr>
                        </u-table>
                      </view>
                    </view>

                  </view>
                </uni-collapse-item>
              </uni-collapse>
            </view>
            <!-- 服务模块 -->
            <view class="" style="height: 100vh" v-show="curNow1 == 1">
              <view
                  v-show="prjFuWu.length === 0"
                  style="
		           padding: 8rpx 0 8rpx 22rpx;
		           font-size: 24rpx;
		            color: red;

		            font-weight: bold;
		          "
              >
                <text
                >无服务数据，请确认服务在商合是否已下单并返回PMS预估单！
                </text
                >
              </view>
              <view
                  v-show="prjFuWu.length !== 0"
                  style="
		            padding: 8rpx 0 8rpx 22rpx;
		            font-size: 24rpx;
		            font-weight: bold;
		          "
              >
                <view
                >1、服务发生贴签赋码后，需做验工计价，暂不支持逆向操作！
                </view
                >
                <view
                >2、如未找到服务数据，请先确认该服务在商合交易已下单并返回预估单！
                </view
                >
                <view style="width: 92%;text-align:right;position: relative;">
                  <text style="font-size: 22rpx;color: #007AFF">
                    <text @click="illustrate">贴签说明</text>
                    <image style="width: 32rpx;height: 32rpx;position:absolute;
		  				  					        top:12rpx;right: -32rpx"
                           src="@/static/imges/wenhaoer.png" mode=""></image>
                  </text>
                </view>
              </view>
              <view
                  v-show="prjFuWu.length != 0"
                  v-if="nosousk"
                  style="
		  				    padding: 0 20rpx 15rpx 20rpx;
		  				  "
              >
                <view class="searchbox-so">
                  <view class="u-search-inner">
                    <u-icon name="search" color="#909399" :size="28"></u-icon>
                    <u-input v-model="searchValueb" height="30"
                             placeholder="  请输入物料名称/物料编码/资源资产编码/标签ID"/>
                  </view>
                </view>
              </view>

              <uni-collapse v-show="prjFuWu.length !== 0">
                <uni-collapse-item
                    class="collapseStyle"
                    title-border="none"
                    :border="false"
                    :open="nofor"
                    v-for="(item, index) in prjFuWuer"
                    :key="index"
                >
                  <template v-slot:title>
                    <view
                        class=""
                        style="
		                  width: 100%;

		                  display: flex;
		                  align-items: center;
		                  justify-content: space-between;
		                "
                    >
                      <view class="type" style="width: 80%">
                        <text :selectable="true">{{ item.serviceName }}</text>
                      </view>
                      <button
                          v-if="titleList.isOldPrj == 0"
                          @click.stop="
		                    toLabel2(item, item.serviceCode, item.serviceType)
		                  "
                          style="margin: 0 20rpx 0 0; padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;"
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                      <button
                          v-if="titleList.isOldPrj == 1"
                          @click.stop="notice"

                          style="
		                   margin: 0 20rpx 0 0;
		                   padding: 0 10rpx;
		                   width: 140rpx;height: 60rpx;font-size: 26rpx;
		                   color: grey;
		                   border-color: grey;
		                 "
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                    </view>
                  </template>
                  <view
                      class="content"
                      v-for="(key, index) in item.isAssignCodeListInfos"
                      style="
		                height: auto;
		                margin-bottom: 5px;
		                background-color: #eee;
		                display: flex;
		                justify-content: space-between;
		                align-items: flex-end;
						position: relative;

		              "
                      :key="index"
                  >
                    <view style="width: 75%;">
                      <view class="type" style="min-height: 50rpx;">{{ key.categoryName }}</view>
                      <view class="type" style="height: 50rpx;"
                      >物料编码：
                        <text :selectable="true">{{ key.categoryCode }}</text>
                      </view
                      >
                      <view class="type" style="height: 50rpx;"
                      >资源资产编码：
                        <text :selectable="true">{{ key.resourceAssetCode }}</text>
                      </view
                      >
                      <view class="type" style="height: 50rpx;">标签ID：
                        <text :selectable="true" style="color: #007AFF;"
                              @click="schemeert(key.resourceAssetCode,key.labelId)">
                          {{ (key.labelId != null && key.resourceAssetCode != null) ? key.labelId : "" }}
                        </text>
                        <text :selectable="true" style="color: black;">
                          {{ (key.labelId == null || key.resourceAssetCode == null) ? key.labelId : "" }}
                        </text>
                      </view>
                        <!--添加显隐判断条件-->
                        <view class="type" style="height: 50rpx;" v-if="+key.isElectrical===1">数量(米)：
                            <text :selectable="true">{{ key.detailNum }}</text>
                        </view>
                    </view>
                    <button v-show="Sinformation"
                            v-if="key.labelId!=null&key.specState!=1"
                            @click="toSignChangeimg({osDetailId:''}, key)"
                            style=" padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;position:absolute;right: 30rpx;top: 10rpx;"
                            type="warn"
                            :plain="true"
                            size="mini"
                    >
                      查看照片
                    </button>
                    <button
                    @click.stop="toSignChange2(key, 1)"
                        style="padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;position: absolute;right: 30rpx;top: 74rpx;"
                        type="warn"
                        :plain="true"
                        size="mini"
                    >
                      换签
                    </button>
                    <button v-if="key.labelId!=null"

                            @click.stop="() => delFw(key)"
                            style=" padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;position:absolute;right: 30rpx;top: 140rpx;"
                            type="warn"
                            :plain="true"
                            size="mini"
                    >
                      解绑标签
                    </button>
                      <!--添加显隐判断条件-->
                      <button v-if="+key.isElectrical===1"
                              @click="() => editNum(item.serviceCode,key.categoryCode)"
                              style=" padding: 0 10rpx;width: 180rpx;height: 60rpx;font-size: 26rpx;position:absolute;right: 12rpx;top: 206rpx;"
                              type="warn"
                              :plain="true"
                              size="mini"
                      >
                          修改绑定数量
                      </button>
                  </view>
                </uni-collapse-item>
              </uni-collapse>
              <view
                  v-show="prjFuWu.length === 0"
                  class=""
                  style="margin-top: 200rpx; text-align: center; color: #d9001b"
              >
                暂无数据
              </view>
            </view>
            <!-- 辅材模块 -->
            <view class="" style="height: 100vh" v-show="curNow1 == 2">
              <view
                  style="
		          padding: 8rpx 0 8rpx 22rpx;
		          font-size: 24rpx;
		            color: red;

		            font-weight: bold;
		          "
              >
                <text>如项目中使用了线缆，请依据线缆规格进行贴签赋码！</text>
                <view style="width: 92%;text-align:right;position: relative;">
                  <text style="font-size: 22rpx;color: #007AFF">
                    <text @click="illustrate">贴签说明</text>
                    <image style="width: 32rpx;height: 32rpx;position:absolute;
		  				  					        top:12rpx;right: -32rpx"
                           src="@/static/imges/wenhaoer.png" mode=""></image>
                  </text>
                </view>
              </view>
              <uni-collapse>
                <uni-collapse-item
                    class="collapseStyle"
                    title-border="none"
                    :border="false"
                >
                  <template v-slot:title>
                    <view
                        class=""
                        style="
		                  width: 100%;
		                  height: 80rpx;
		                  display: flex;
		                  align-items: center;
		                  justify-content: space-between;
		                "
                    >
                      <view class="type" style="width: 78%">
                        <text :selectable="true"> 10KV电力电缆</text>
                      </view>
                      <button
                          v-debounce="() => toLabel3('10KV电力电缆', '01610101')"
                          style="margin: 0 20rpx 0 0; padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;"
                          v-show="showBotton10kv"
                          v-if="titleList.isOldPrj == 0"
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                      <button
                          v-if="titleList.isOldPrj == 1"
                          v-debounce="() => notice"
                          v-show="showBotton10kv"
                          style="
		  						  width: 22%;
		                    margin: 0 20rpx 0 0;
		                    padding: 0 10rpx;
		  							width: 140rpx;height: 60rpx;font-size: 26rpx;
		                    color: grey;
		                    border-color: grey;
		                  "
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                    </view>
                  </template>
                  <view
                      class="content"
                      style="
		                height: auto;
		                background-color: #eee;
		                margin-bottom: 5px;
						position: relative;
		              "
                      v-for="(item, index) in khqFuCai"
                      v-show="item.assetCode === '01610101'"
                      :key="index"
                  >
                    <view class="type">
                      <text :selectable="true">{{ item.categoryName }}</text>
                    </view>
                    <view class="type"
                    >物料编码：
                      <text :selectable="true">{{ item.categoryCode }}</text>
                    </view
                    >
                    <view class="type"
                    >资源资产编码：
                      <text :selectable="true">{{ item.resourceAssetCode }}</text>
                    </view
                    >
                    <view class="type">标签ID：
                      <text :selectable="true" style="color: #007AFF;"
                            @click="schemeert(item.resourceAssetCode,item.labelId)">
                        {{ (item.labelId != null && item.resourceAssetCode != null) ? item.labelId : "" }}
                      </text>
                      <text :selectable="true" style="color: black;">
                        {{ (item.labelId == null || item.resourceAssetCode == null) ? item.labelId : "" }}
                      </text>
                    </view>
                    <button
                        v-show="khqShowButton10kv"
                        @click.stop="toSignChange2(khqFuCai, 2, '01610101')"
                        style="

					      padding: 0 10rpx;
					  						  width: 140rpx;height: 60rpx;font-size: 26rpx;
					      position: absolute;
					      right: 20rpx;bottom: 80rpx;
					    "
                        type="warn"
                        :plain="true"
                        size="mini"
                    >
                      换签
                    </button>
                      <button
                          v-show="khqShowButton10kv"
                          @click.stop="unbindLabelAssist(item)"
                          style="padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;position: absolute;right: 20rpx;bottom: 10rpx;"
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                          解绑标签
                      </button>
                  </view>
                </uni-collapse-item>
                <uni-collapse-item
                    class="collapseStyle"
                    title-border="none"
                    :border="false"
                >
                  <template v-slot:title>
                    <view
                        class=""
                        style="
		                  width: 100%;
		                  height: 80rpx;
		                  display: flex;
		                  align-items: center;
		                  justify-content: space-between;
		                "
                    >
                      <view class="type" style="width: 78%">
                        <text :selectable="true"> 1KV以下电力电缆</text>
                      </view>
                      <button
                          v-if="titleList.isOldPrj == 0"
                          v-show="showBotton1kv"
                          @click.stop="toLabel3('1KV以下电力电缆', '01610102')"
                          style="margin: 0 20rpx 0 0; padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;"
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                      <button
                          v-if="titleList.isOldPrj == 1"
                          v-show="showBotton1kv"
                          v-debounce="() => notice"
                          style="
		                    width: 22%;
		                    margin: 0 20rpx 0 0;
		                    padding: 0 10rpx;
		  							width: 140rpx;height: 60rpx;font-size: 26rpx;
		                    color: grey;
		                    border-color: grey;
		                  "
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                        赋码贴签
                      </button>
                    </view>
                  </template>
                  <view
                      class="content"
                      style="
		                height: auto;
		                background-color: #eee;
		                margin-bottom: 5px;
						position: relative;
		              "
                      v-for="(item, index) in khqFuCai"
                      v-show="item.assetCode === '01610102'"
                      :key="index"
                  >
                    <view class="type">
                      <text :selectable="true">{{ item.categoryName }}</text>
                    </view>
                    <view class="type">物料编码：
                      <text :selectable="true">{{ item.categoryCode }}</text>
                    </view>
                    <view class="type">资源资产编码：
                      <text :selectable="true">{{ item.resourceAssetCode }}</text>
                    </view>
                    <view class="type">标签ID：
                      <text :selectable="true" style="color: #007AFF;"
                            @click="schemeert(item.resourceAssetCode,item.labelId)">
                        {{ (item.labelId != null && item.resourceAssetCode != null) ? item.labelId : "" }}
                      </text>
                      <text :selectable="true" style="color: black;">
                        {{ (item.labelId == null || item.resourceAssetCode == null) ? item.labelId : "" }}
                      </text>
                    </view>
                    <button
                        v-show="khqShowButton1kv"
                        @click.stop="toSignChange2(khqFuCai, 2, '01610102')"
                        style="

					      padding: 0 10rpx;
					  						  width: 140rpx;height: 60rpx;font-size: 26rpx;
					      position: absolute;
					      right: 20rpx;bottom: 80rpx;
					    "
                        type="warn"
                        :plain="true"
                        size="mini"
                    >
                      换签
                    </button>
                      <button
                          v-show="khqShowButton1kv"
                          @click.stop="unbindLabelAssist(item)"
                          style="padding: 0 10rpx;width: 140rpx;height: 60rpx;font-size: 26rpx;position: absolute;right: 20rpx;bottom: 10rpx;"
                          type="warn"
                          :plain="true"
                          size="mini"
                      >
                          解绑标签
                      </button>
                  </view>
                </uni-collapse-item>
              </uni-collapse>
              <view
                  v-show="prjFuCai.length === 0"
                  class=""
                  style="margin-top: 200rpx; text-align: center; color: #d9001b"
              >
                暂无数据
              </view>
            </view>
            <non-external-power  v-if="curNow1 == 3" :titleList="titleList" :manageMode="loger" ref="nonExternalPower"></non-external-power>
          </scroll-view>
        </swiper-item>
      </view>

      <view class="buttonBox" v-show="current == 0 && curNow1 == 0">
        <button
            v-debounce="() => sanCodeDetailer(1)"
            type="warn"
            style="width: 30%; height: 70rpx; line-height: 70rpx; font-size: 32rpx"
        >
          到货确认
        </button>
          <button
              @click="() => sanCodeDetailer(2)"
              type="warn"
              style="width: 30%; height: 70rpx; line-height: 70rpx; font-size: 32rpx"
          >
              跨项目调整
          </button>
      </view>
      <view class="buttonBox" v-show="current == 1 && curNow2 == 0">
        <button
            @click.stop="() => sanCodeDetailer(0)"
            type="warn"
            style="width: 30%; height: 70rpx; line-height: 70rpx; font-size: 32rpx"
        >
          解绑
        </button>
          <button
              @click="() => sanCodeDetailer(2)"
              type="warn"
              style="width: 30%; height: 70rpx; line-height: 70rpx; font-size: 32rpx"
          >
              跨项目调整
          </button>
      </view>
      <view class="buttonBox" v-if="curNow1 === 3">
        <button @click.stop="scanConfirm" type="warn" style="width: 30%; height: 70rpx; line-height: 70rpx; font-size: 32rpx">
            到货确认
        </button>
      </view>
    </view>

    <u-modal
        v-model="modal.show"
        :title="modal.title"
        :show-confirm-button="false"
    >
      <view class="slot-content">
        <rich-text :nodes="modal.content"></rich-text>
      </view>
      <view class="bottom_btn" v-show="modal.type == 2">
        <view class="bottom_btn_item" @click="cancle">确定</view>
      </view>
      <view class="bottom_btn" v-show="modal.type == 3">
        <view class="bottom_btn_item" @click="cancle">不了，谢谢</view>
        <view class="bottom_btn_item" @click="change">调整物资</view>
      </view>
      <view class="bottom_btn" v-show="modal.type == 4">
        <view class="bottom_btn_item" @click="cancle">返回</view>
      </view>
    </u-modal>
    <ElectricCable ref="electricCable" @mylick="mylick"></ElectricCable>
    <!-- 解绑模式弹框 -->
    <u-modal v-model="isShowModal" title="解绑确认" confirm-text="取消" confirm-color="#eb4b4b"
             :title-style="{fontWeight:'bold',fontSize:'40rpx'}">
      <view class=""
            style="color: #eb4b4b;text-align: center;border: 1px solid #F2F2F2;height: 100rpx;line-height: 100rpx;font-size: 30rpx;">
        <text v-debounce="() => modalClick('01')">解绑（原标签保留)</text>
      </view>
      <view class=""
            style="color: #eb4b4b;text-align: center;border: 1px solid #F2F2F2;height: 100rpx;line-height: 100rpx;font-size: 30rpx;">
        <text v-debounce="() => modalClick('02')">解绑（原标签遗失或破损）</text>
      </view>
    </u-modal>
    <view class="">
      <u-popup v-model="bottomShow" mode="bottom">
        <view style="height: 300rpx;">
          <view v-debounce="() => getCamera()"
                style="width: 100%;height: 100rpx;border-bottom: 1px solid #D3D3D3;line-height: 100rpx;padding-left:46% ;">
            <text style="font-size: 30rpx;">扫码</text>
          </view>
          <view v-debounce="() => getSelectImg()"
                style="width: 100%;height: 100rpx;border-bottom: 1px solid #D3D3D3;line-height: 100rpx;padding-left:46% ;">
            <text style="font-size: 30rpx;">相册</text>
            <text style="font-size: 24rpx;color: #EB4B4B;">(建议照片不得超过4M)</text>
          </view>
          <view @click="canceler()"
                style="width: 100%;height: 100rpx;border-bottom: 1px solid #D3D3D3;line-height: 100rpx;padding-left:46% ;">
            <text style="font-size: 30rpx;">取消</text>
          </view>
        </view>
      </u-popup>
    </view>
    <EditNumModal @close="()=>{ showEditNumModal=false}" @confirm="editNumCon" v-if="showEditNumModal"></EditNumModal>
  </view>
</template>

<script>
import ElectricCable from "./components/ElectricCable.vue";
import EditNumModal from "./components/editNumModal.vue";
import {getGPS, exceedDistance} from "../utils/gpsUtil";
import {checkClickAbled} from "./utils";
import NonExternalPower from "@/inspur/completionConfirmation/components/NonExternalPowerList.vue";

var qrcode = require('@/static/reqrcode.js');

export default {
  components: {
    NonExternalPower,
    ElectricCable,
    EditNumModal,
  },
  data() {
    return {
      Sinformation: false,
      ionerid: "",
      Confirmeder: false,
      arrowheada: [],
      arrowheadaer: [],
      nosousk: false,
      bottomShow: false,
      nofor: false,
      indexerty: "",
      bes64: "",
      scanWord: "",
      scanWorderty: "",
      scanWordertytyu: "",
      panduan: "",
      searchValuea: "",  //主材搜索
      searchValueb: "",  //服务搜索
      searchValuec: "",  //主材搜索
      searchValued: "",  //服务搜索
      modal: {
        show: false,
        title: null,
        content: null,
        prjId: null,
        resourceAssetLabelId: null,
      },
      isShowModal: false,
      titleList: {},
      titleFlag: true,
      list: [
        {
          name: "待绑定",
        },
        {
          name: "可解绑",
        },
        {
          name: "可换签",
        },
      ],
      // 因为内部的滑动机制限制，请将tabs组件和swiper组件的current用不同变量赋值
      current: 0, // tabs组件的current值，表示当前活动的tab选项
      swiperCurrent: 0, // swiper组件的current值，表示当前那个swiper-item是活动的
      curNow1: 0,
      curNow2: 0,
      curNow3: 0,
      checkBoxValue: 1,
      isShowCheckbox: false,
      checkBoxRange: [
        {
          value: 1,
          text: "已绑定",
        },
        {
          value: 0,
          text: "未绑定",
        },
      ],
      zyzcbm: "",
      chooseno: "",
      bqid: "",
      prjInfo: [], //待绑定
      prjInfoer: [], //待绑定
      unbindData: [], //可解绑列表信息
      prjInfoChange: [], //可换签
      prjInfoChangeer: [], //可换签
      prjFuWu: [], //待绑定
      prjFuWuer: [], //待绑定
      swapMode: '01',// 正常模式
      prjFuCai: [], //待绑定
      khqFuWu: [], //可换签
      khqFuWuer: [], //可换签
      khqFuCai: [], //可换签
      biaoqian1: "10KV电缆",
      biaoqian2: "1KV以下电缆",
      showBotton10kv: true, //控制10kv赋码贴签按钮显示隐藏
      showBotton1kv: true, //控制1kv赋码贴签按钮显示隐藏
      khqShowButton10kv: false, //控制可换签辅材10kv显示隐藏
      khqShowButton1kv: false, //控制可换签辅材1kv显示隐藏
      // 请求没有返回，不可点击
      loading: false,
      contentHeight: 0,
      juLi: "",
      gdjuLi: "",
      // panduan: "0",
      contenrawz: 0,
      contenrafw: 0,
      loger: "",
      fprjId: "",
      schoolNameert: "",
      dialogData: {
        title: '',
        content: '',
        onlyShowConfirm: false
      },
      showSlot: false,
      pmsToken:'',
        typeFlag:'0', //判断是甲供0还是乙供1
        showEditNumModal:false,
        listTabs:[],
        showTabs:false,
        serviceCodeInit:'',
        categoryCodeInit:'',
    };
  },
  watch: {
    current() {
      this.pageRefresh();
    },
    // 主材搜索
    searchValuea() {

      if (this.searchValuea != "") {
        this.nofor = true;
        let categoryCodewz = "";
        let serviceNamwz = "";
        if ((Number(this.searchValuea))) {
          console.log("数字")
          this.categoryCodewz = this.searchValuea
          this.serviceNamwz = ""
        } else {

          console.log("非数字")
          this.categoryCodewz = ""
          this.serviceNamwz = this.searchValuea
        }
        console.log('传入参数1:' + this.serviceNamwz);
        console.log('传入参数2:' + this.categoryCodewz);
        if (this.serviceNamwz == "") {
          let scoresb2 = this.prjInfo.filter((item) => {
            return item.categoryCode.includes(this.categoryCodewz)
          });
          this.prjInfoer = scoresb2;
        } else if (this.categoryCodewz == "") {
          let scoresb2 = this.prjInfo.filter((item) => {
            return item.categoryName.includes(this.serviceNamwz)
          });
          this.prjInfoer = scoresb2;
        } else{
          console.log(111)
        }
      } else {
        this.prjInfoer = this.prjInfo;
        this.nofor = false;
      }
    },
    // 服务搜索
    searchValueb() {
      if (this.searchValueb != "") {
        this.nofor = true;
        console.log('传入参数2:' + this.searchValueb);
        let scoresb2 = this.prjFuWu.filter((item1) => {
          console.log("这里到子项了")     //categoryName  categoryCode  resourceAssetCode  labelId
          let arrra = item1.isAssignCodeListInfos.filter((item) => {
            if (item.categoryName.includes(this.searchValueb) != false) {
              console.log("物资名称")
              return true
            } else if (item.categoryCode.includes(this.searchValueb) != false) {
              console.log("这里是物资编码")
              return true
            } else if (item.resourceAssetCode.includes(this.searchValueb) != false) {
              console.log("资源资产")
              return true
            } else if (item.labelId.includes(this.searchValueb) != false) {
              console.log("这里是ID")
              return true
            }else{
                console.log('111')
            }
          })
          if (arrra.length != 0) {
            return item1
          }

        });
        this.prjFuWuer = scoresb2;
      } else {
        this.prjFuWuer = this.prjFuWu;
        this.nofor = false;
      }
    },
    // 主材搜索
    searchValuec() {
      if (this.searchValuec != "") {
        this.nofor = true;
        console.log('传入参数3:' + this.searchValuec);
        this.prjInfoChangeer = this.getSearchValueCItem();
      } else {
        this.prjInfoChangeer = this.prjInfoChange;
        this.nofor = false;
      }
    },
    // 服务搜索
    searchValued() {
      if (this.searchValued != "") {
        this.nofor = true;
        console.log('传入参数2:' + this.searchValued);
        let scoresb2 = this.khqFuWu.filter((item1) => {
          console.log("这里到子项了")
          let arrrc = item1.isAssignCodeListInfos.filter((item) => {
            if (item.categoryName.includes(this.searchValued) != false) {
              console.log("物资名称")
              return true
            } else if (item.categoryCode.includes(this.searchValued) != false) {
              console.log("这里是物资编码")
              return true
            } else if (item.resourceAssetCode.includes(this.searchValued) != false) {
              console.log("资源资产")
              return true
            } else if (item.labelId.includes(this.searchValued) != false) {
              console.log("这里是ID")
              return true
            } else { console.log(111)}
          })
          if (arrrc.length != 0) {
            return item1
          }

        });
        this.khqFuWuer = scoresb2;
      } else {
        this.khqFuWuer = this.khqFuWu;
        this.nofor = false;
      }
    },
  },
  onLoad(option) {
    uni.setStorageSync("PMS20url", process.uniEnv.commonPMS20+'/material')
    uni.setStorageSync("PMStoken", option.sysToken)
    uni.setStorageSync("sysToken", option.sysToken)
    uni.setStorageSync("LOGINACCT", option.LOGINACCT)
    this.pmsToken=option.pmsToken;
      let list = JSON.parse(decodeURIComponent(option.list))
      this.loger=option.loger
      this.fprjId=option.fprjId
      this.titleList = {
          ...list,
          prjId: option.prjId,
          isOldPrj: 0,
      }
      this.$axios.get('/material/api/app/mainMaterialLable/queryPrjInfoByPrjId',{prjId:option.prjId}).then((res)=>{
          console.log('res',res)
          let obj = res.data
          Object.assign(this.titleList,obj)
          if (obj.projectName) {
              this.titleList.prjName = obj.projectName
              this.titleList.subPrjName = obj.projectName
          }
      })
      this.$axios.get('/material/api/cableMateLabel/isNeedLabel',{prjId:option.prjId}).then((res)=>{
          if(res.data){
              this.listTabs=['甲供物资', '总包类服务', '外电电缆','非外电电缆']
          }else{
              this.listTabs=['甲供物资', '总包类服务', '外电电缆']
          }
          this.showTabs=true
      })
      console.log('this.titleList1',this.titleList)
    const {windowHeight} = uni.getSystemInfoSync();
    this.contentHeight = windowHeight - 75 + "px";
    // 控制是否显示表头
    if (uni.getStorageSync("moaType") == "0") {
      this.titleFlag = false;
    }
    this.prjFuWuer = this.prjFuWuer;
    this.ionerid = this.titleList.prjId;
    this.getList();
    this.Permissioner();
    console.log('option', option)

  },
  onHide() {
    imp.iWindow.setMenus([{
      ico: '',
      callback: () => {
          console.log('关闭')
      }
    }]);
  },
  onShow() {
    const url = window.location.origin + window.location.pathname
    let menus=[{
      ico: url+'static/imges/fangdajing.png',
      callback: ()=> this.sousk()
    }];
    imp.iWindow.setMenus(menus)
    // this.pageRefresh();
    let pages = getCurrentPages();
    if (pages[pages.length - 1].$vm.schoolName) {
      this.schoolNameert = pages[pages.length - 1].$vm.schoolName
    }
    console.log("上个页面传来的", this.schoolNameert)
    if (this.schoolNameert == "1") {
      this.getFuWu("1")
    } else if (this.schoolNameert == "2") {
      this.getList()
    } else if (this.schoolNameert == "3") {
      this.getFuCai("1");
    }else{
        console.log(111,222)
        this.$refs.nonExternalPower.getNonPowerList();
    }
  },
  methods: {
      getSearchValueCItem(){
          let scoresb2
          scoresb2 = this.prjInfoChange.filter((item) => {
              if (this.getSearchValueCStatusOne(item)) {
                  return item.categoryName.includes(this.searchValuec)
              } else if (this.getSearchValueCStatusTwo(item)) {
                  return item.categoryCode.includes(this.searchValuec)
              } else {
                  let arrrb = ithis.getSearchValueCArr(item)
                  if (arrrb.length != 0) {
                      return item
                  }
              }
          });
          return scoresb2;
      },
      getSearchValueCArr(item){
          return item.labelCode.filter((item1) => {
              if (item1.isBound == this.checkBoxValue) {
                  if ( this.getSearchValueCStatusThree(item1) || this.getSearchValueCStatusFour(item1)) {
                      return true
                  }
              }
          })
      },
      getSearchValueCStatusOne(item){
          return item.categoryName != null && item.categoryName.includes(this.searchValuec) != false
      },
      getSearchValueCStatusTwo(item){
          return item.categoryCode != null && item.categoryCode.includes(this.searchValuec) != false
      },
      getSearchValueCStatusThree(item1){
          return item1.resourceAssetCode != null && item1.resourceAssetCode.includes(this.searchValuec) != false
      },
      getSearchValueCStatusFour(item1){
          return item1.labelId != null && item1.labelId.includes(this.searchValuec) != false
      },
      scanConfirm(){
          this.$refs.nonExternalPower.scanConfirm();
      },
    mylick(str) {
      console.log("来自子组件穿的数据：", str);

      this.getFuCai("1");
    },
      // 修改绑定数量
      editNum(serviceCode,categoryCode){
          console.log('选中数据',serviceCode,categoryCode)
          this.serviceCodeInit=serviceCode;
          this.categoryCodeInit=categoryCode;
          this.showEditNumModal=true
      },
      editNumCon(data){
          this.showEditNumModal=false
          const that=this;
          const params={
              prjId:this.titleList.prjId,
              serviceCode:this.serviceCodeInit,
              categoryCode:this.categoryCodeInit,
              detailNum:data
          }
          this.$axios.post('/material/api/app/serverLable/updateCableNum',params).then(()=>{
              uni.showModal({
                  confirmColor: '#eb4b4b',
                  title: '温馨提示',
                  content: '修改成功！',
                  showCancel: false,
                  success: () => {
                      that.getFuWu("1");
                  }
              })
          })
      },
    back() {
      if (!this.loading) {
        uni.navigateBack({
          delta: 1,
        });
      }
    },
    // 搜索框的显示隐藏
    sousk() {
      this.nosousk = !this.nosousk;
      if (!this.nosousk) {
        this.searchValuea = "";
        this.searchValueb = "";
        this.searchValuec = "";
        this.searchValued = "";
        this.nofor = false;
      }
    },


    // 跳转至经分系统
    schemeert(options, amger) {
      console.log("测试")
      this.$axios.get('/material/api/pub/material/getOtherSysIpAndPort',{ sysCode:'jingFenSysIpAndPort'}).then((res)=>{
        imp.iWindow.open({url:`${res.data}/api/user/getRedirectToBcsystem?resourceAssetCode=${options}&elabelNum=${amger}`})
      })
      //style= color: #007AFF;
    },
    // 跳转到设计方案列表
    async scheme(){
        let sysToken = uni.getStorageSync("sysToken")
        if( +this.titleList.isInfoPrj === 1){
            //信息化项目
            imp.iWindow.open({url:`${process.uniEnv.BASE_JN_URL}/#/inspur/inspectionAndValuation/components/materialView?bizSeq=${this.titleList.prjId}&isChanged=0&sysToken=${sysToken}`})
        }else{
            //非信息化项目
            imp.iWindow.open({url:`${process.uniEnv.BASE_JN_URL}/#/inspur/inspectionAndValuation/overallComprehensiveQuery/components/materialView?prjId=${this.titleList.prjId}&isChanged=0&sysToken=${sysToken}`})
        }
    },
    // 取消
    canceler() {
      this.bottomShow = false
    },
    sanCodeDetailer(e) {
      this.bottomShow = true;
      this.bes64 = "";
      this.scanWorderty = "";
      this.scanWordertytyu = "";
      this.indexerty = e;
    },
    // 直接扫码
    getCamera() {
      this.bottomShow = false
      this.sanCodeDetail(this.indexerty)
    },
    // 上传图片
    getSelectImg() {
      this.scanWorderty = "";
      this.bottomShow = false

      this.xiangce();
    },
    base642Url(data) {
      var parts = data.split(';base64,'),
          contentType = parts[0].split(':')[1],
          raw = window.atob(parts[1]),
          length = raw.length,
          arr = new Uint8Array(length);
      for (var i = 0; i < length; i++) {
        arr[i] = raw.charCodeAt(i);
      }
      var blob = new Blob([arr], {type: contentType});
      return URL.createObjectURL(blob);
    },
    // 大小
    showSize(base64url) {
      // const indexBase64 = base64Str.indexOf('base64,');
      //   if (indexBase64 < 0) return -1;
      //   const str = base64Str.substr(indexBase64 + 6);
      //   return (str.length * 0.75).toFixed(2);
      var str = base64url.replace('data:image/png;base64,', '');
      // 找到等号，把等号也去掉
      var equalIndex = str.indexOf('=');
      if (str.indexOf('=') > 0) {
        str = str.substring(0, equalIndex);
      }
      // 原来的字符流大小，单位为字节
      var strLength = str.length;
      // 计算后得到的文件流大小，单位为字节
      var fileLength = parseInt(strLength - (strLength / 8) * 2);
      // 由字节转换为kb
      var size = "";
      size = (fileLength / 1024).toFixed(2);
      var sizeStr = size + ""; //转成字符串
      var index = sizeStr.indexOf("."); //获取小数点处的索引
      var dou = sizeStr.substr(index + 1, 2) //获取小数点后两位的值
      if (dou == "00") { //判断后两位是否为00，如果是则删除00
        return sizeStr.substring(0, index) + sizeStr.substr(index + 3, 2)
      }
      return size;
    },

    baseertt(base64Str) {
      let that = this;
      let format = base64Str.thumbnailUrl.split(".")[1]
      console.log("格式", format)
      if (format == 'jpg' || format == 'jpeg' || format == 'png' || format == 'bmp') {

      } else if (format == 'JPG' || format == 'JPEG' || format == 'PNG' || format == 'BMP') {

      } else {
        uni.showModal({
          confirmColor: '#eb4b4b',
          title: "温馨提示",
          content: "请上传jpg/jpeg/png/bmp格式的照片",
          showCancel: false,
        });
        that.scanWorderty = "2";
        return
      }


      let base64Top = 'data:image/jpeg;base64,'
      that.bes64 = base64Top + base64Str.originalData;
      // 图片大小
      const imgFileer = that.showSize(that.bes64);
      console.log("计算的图片大小", imgFileer);
      console.log("计算的图片大小", imgFileer / 1024);
      if (imgFileer > 4096) {
        that.scanWordertytyu = "2";
      }
      // 识别二维码
      const imgFile = that.base642Url(that.bes64);
      //const imgFile = that.base642Url(base64Str.thumbnailData);
      console.log("获取的图片路径", imgFile);
      qrcode.decode(imgFile);
      qrcode.callback = function (img) {
        if (img == "error decoding QR Code") {
          uni.showModal({
              confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "识别二维码失败，请重新选择照片",
            showCancel: false,
          });
          that.scanWorderty = "2";
          return
        } else {
          that.scanWord = img
          console.log("二维码", that.scanWorderty);
        }
      }
      setTimeout(() => {
        //console.log("最终所得",that.bes64,that.scanWord);
        console.log("判断", that.scanWordertytyu, that.scanWorderty);
        if (that.scanWordertytyu == 2) {
          that.bes64 = "";
        }
        if (that.scanWorderty != 2) {
          getGPS(that.scanWord, that.indexerty, that.scanCodeInfo);
        }
      }, 100);


    },
    xiangce() {
      let that = this
      console.log('选择图片了：');
      var option = {
        quality: 86,
        encodingType: imp.iCamera.EncodingType.JPEG,
        sizeLimit: 1024 * 100,
        num: 1,
        // targetWidth: 0,
        // targetHeight: 0,
        // watermark: {
        // 	content: "项目编码：345678",
        // 	color: "red",
        // 	algin: "left",
        // 	valign: "buttom"
        // }
      };

      var failed = (info) => {
        uni.showModal({
            confirmColor: '#eb4b4b',
          title: '温馨提示',
          content: "相册调用失败",
          showCancel: false,
        });
      };
      var success = (info) => {
        console.log('这是相册所得：', info[0]);
        var base64Top = 'data:image/jpeg;base64,'
        setTimeout(() => {
          that.baseertt(info[0])
        }, 30);

      };
      imp.iCamera.select(option, success, failed);

    },

    // 跳转扫码详情页
    sanCodeDetail(index) {
      if (this.loading) {
        return;
      }
      ;

      if (index == "1") {
        window.TDAPP.onEvent("详情页到货确认按钮");
      }
      if (index == "0") {
        window.TDAPP.onEvent("详情页解绑按钮");
      }
      ;
      console.log("详情页到货确认解绑按钮");
      console.log("准备获取距离了");
      // this.scanCodeInfo("T2001835604",1,"36.325654","117.3262");
      imp.iBarCode.scan((result) => {
        //直接调用接口
        getGPS(result, index, this.scanCodeInfo);
      });

    },
    scanCodeInfozhanzhi(e) {
      getGPS(e, "0", this.scanCodeInfo);
    },
    scanCodeInfoResultOne(data,index){
        if (index == 1) {
            //绑定 1；解绑 0
            uni.navigateTo({
                url:
                    "../scanOut/detail?item=" +
                    encodeURIComponent(JSON.stringify(data)) +
                    "&flag=2&routeType=aSupply&panduan=1&fushuuser=true",
            });
        } else {
            uni.navigateTo({
                url:
                    "../scanOut/detail?item=" +
                    encodeURIComponent(JSON.stringify(data)) +
                    "&flag=3&panduan=1&fushuuser=true",
            });
        }
    },
    scanCodeInfoResultTwo(data,index, latitude, longitude){
        var ref = data.data.scanConfirmData.controlModeType;
        let that = this;
        let latituder = parseFloat(latitude).toFixed(6);
        let longituder = parseFloat(longitude).toFixed(6);
        if (that.juLi <= that.gdjuLi) {
            data.prjId = this.titleList.prjId;
            this.scanCodeInfoResultOne(data,index);
        } else if (ref == 2) {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "站址经纬度校验",
                content: `您当前经纬度（WGS84坐标系）为${longituder}，${latituder}，距站址${that.juLi} m，已超出${that.gdjuLi} m的最大距离限制。\n是否继续本次到货确认？`,
                success: (res) => {
                    console.log(res);
                    if (res.confirm) {
                        console.log("用户点击是");
                        data.prjId = this.titleList.prjId;
                        this.scanCodeInfoResultOne(data,index);
                    }else{
                        console.log(111);
                    }
                },
            });
        } else {
            uni.showModal({
                confirmColor: '#eb4b4b',
                showCancel: false,
                title: "站址经纬度校验",
                content: `您当前经纬度（WGS84坐标系）为${longituder}，${latituder}，距站址${that.juLi} m，已超出${that.gdjuLi} m的限制，暂不允许进行到货确认。\n如需修改站址经纬度，请在资源系统进行修改`,
            });
        }
    },
    scanCodeInfoResultThree(data,index, latitude, longitude){
        if (data.data.serviceState == 2) {
            this.scanCodeInfoResultFive(data);
        } else if (data.data.serviceState == 3) {
            this.scanCodeInfoResultSix(data);
        } else if (data.data.serviceState == 4) {
            this.scanCodeInfoResultFour(data,index, latitude, longitude);
        } else if (this.scanCodeInfoResultThreeStatus(data)) {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: data.message == null ? "您还不能对该项目进行站址物资扫码操作" : "您还不能进行对该项目进行站址物资扫码操作," + data.message,
                showCancel: false,
            });
        } else {
            this.scanCodeInfoResultClose(data);
        }
    },
    scanCodeInfoResultThreeStatus(data){
        return data.data.serviceState == 5 || data.data.serviceState == 6 || data.data.serviceState == 7;
    },
    scanCodeInfoResultFour(data,index, latitude, longitude){
        let that = this;
        if (data.data.scanConfirmData != null && data.data.scanConfirmData.distance != null && data.data.scanConfirmData.standardDistance != null) {
            that.juLi = data.data.scanConfirmData.distance;
            that.gdjuLi = data.data.scanConfirmData.standardDistance;
            that.scanCodeInfoResultTwo(data,index, latitude, longitude);
        } else {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: "扫码地址远大于标准距离，请重新选择扫码地点",
                showCancel: false,
            });
        }
    },
    scanCodeInfoResultFive(data){
        let ley = data.data.resPmsMdm == null ? data.message : data.data.resPmsMdm.errorMsg
        console.log("0000000", ley)
        uni.showModal({
            confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: data.message == null ? "该物资不允许绑定/解绑" :  ley,
            showCancel: false,
        });
    },
    scanCodeInfoResultSix(data){
        let that = this;
        uni.showModal({
            confirmColor: '#eb4b4b',
            title: '温馨提示',
            content: data.message == null ? "该物资不允许绑定/解绑" : data.message,
            success: function (res) {
                if (res.confirm) {
                    console.log('用户点击是', that.titleList.prjId, data.data.scanConfirmData.resourceAssetLabelId);
                    that.checkNeedAdjust(that.titleList.prjId, data.data.scanConfirmData.resourceAssetLabelId);
                }else{
                    console.log("用户点击否");
                }
            }
        });
    },
    scanCodeInfoResultClose(data){
        uni.showModal({
            confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: data.message == null ? "网络请求失败,请稍后重试" :  data.message,
            showCancel: false,
        });
    },
    scanCodeInfoResult(data,index, latitude, longitude){
        if (data.code == "200" && data.data.scanConfirmData != null) {
            this.scanCodeInfoResultTwo(data,index, latitude, longitude);
        } else {
            if (data.data != null) {
                this.scanCodeInfoResultThree(data,index, latitude, longitude);
            } else {
                this.scanCodeInfoResultClose(data);
            }
        }
    },
    //###########################################到货确认功能start##########################################
    scanCodeInfo(label, index, latitude, longitude, controlModeType = "1") {
      if (this.loading) {
        return;
      }
      ;
      console.log("准备获取距离了");
      let that = this;
      let latituder = parseFloat(latitude).toFixed(6);
      let longituder = parseFloat(longitude).toFixed(6);
      console.log(latituder, longituder)
      that.modal.index = index;
      console.log("1,传入参数" + label, this.titleList.prjId);
      console.log("传入参数" + index); //绑定 1；解绑 0
      //T1000003411
      uni.showLoading({
        title: '加载中...',
        mask: true
      });
      uni.request({
        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/scanLableConfirm",
        method: "POST",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {
          prjId: that.titleList.prjId,
          labelId: label,
          operatType: index,
          isFromPhoto: "1",
          latitude: latituder,
          longitude: longituder,
          controlModeType: controlModeType,
          file: that.bes64,
        },
        success: (res) => {
          uni.hideLoading();
          var data = res.data;
          console.log("接口数据:", data);
          if (data.data != null && data.data.scanConfirmData != null) {
            that.juLi = data.data.scanConfirmData.distance / 1;
            that.gdjuLi = data.data.scanConfirmData.standardDistance / 1;
            console.log("给距离:", that.gdjuLi);
            console.log("距离:", that.juLi);
          }
          that.scanCodeInfoResult(data,index, latitude, longitude);
          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.showModal({
            confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "异常,请稍候再试",
            showCancel: false,
          });
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log("fail" + JSON.stringify(data));
        },
      });
    },
    checkNeedAdjust(prjId, e) {
        const params={
            oldPrjId: '',
            newPrjId: prjId,
            categoryCode: '',
            transferNum: '',
            subPrjId:'',
            assetLabelId:e
        }
      this.$axios.post('/material/api/flows/adjustPrjFlow/checkIsNeedAdjustPrjFlow',params).then((res)=>{
          if(+res.data===1){
              this.jumpAdjustProject(params);
          }else{
              this.adjustItem(prjId, e);
          }
      })
    },
    jumpAdjustProject(params){
      let that=this;
      uni.showModal({
          title: "温馨提示",
          content: "发起跨项目调整操作需双方项目经理审批",
          confirmColor:'#eb4b4b',
          success: function (result) {
              if(result.confirm){
                  that.$axios.post('/material/api/flows/adjustPrjFlow/startAdjustPrjFlow',params).then((res)=>{
                      uni.navigateTo({
                          url:'/inspur/adjustProject/index?workItemId='+ res.data+'&type=todo&status=1',
                      })
                  })
              }else{
                  console.log('取消了')
              }
          }
      });
    },
    adjustItem(prjId, e) {
      uni.showLoading({
        title: "加载中...",
        mask: true
      });
      uni.request({
        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/adjustItem?prjId=" +
            prjId +
            "&resourceAssetLabelId=" +
            e,
        method: "POST",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {},
        success: (res) => {
          uni.hideLoading();
          var data = res.data;
          if (data.code == "200") {
            uni.showModal({
confirmColor: '#eb4b4b',
              title: "温馨提示",
              content: "跨项目调整成功！",
              showCancel: false,
            });
          } else {
            uni.showModal({
confirmColor: '#eb4b4b',
              title: "温馨提示",
              content: data.message == null ? "跨项目调整失败！" : "跨项目调整失败！" + data.message,
              showCancel: false,
            });

          }
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log("fail" + JSON.stringify(data));
        },
      });
    },
    // 跳转换签页面
    toSignChange(item, item1) {
        let that=this;
        this.$axios.get('/material/api/app/pubSwapLabel/querySwapLabelInfo',{labelId:item1.labelId}).then(()=>{
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: "除标签丢失、无法扫码识别、标签类型错误、质保期内更换实物外，厂家源头贴码物资禁止随意更换标签，铁塔公司将对不按规定换签的施工单位通报考核。请再次核实本次换签是否合规。",
                success:(res)=>{
                    if(res.confirm){
                        uni.navigateTo({
                            url:
                                "/inspur/changeLabel/changeLabelCheck?item=" +
                                encodeURIComponent(JSON.stringify(item)) +
                                "&item1=" +
                                encodeURIComponent(JSON.stringify(item1)) + "&item2=" + encodeURIComponent(JSON.stringify(that.titleList))+"&index=3&prjId=" + that.titleList.prjId,
                        });
                        window.TDAPP.onEvent("换签按钮");
                        console.log("换签按钮")
                    }else{
                        console.log('取消操作')
                    }
                }
            });
        })
    },
    toSignChangeimg(item, item1) {
      console.log(item1, item)
      uni.request({
        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/queryLabelDetail?osDetailId=" + item.osDetailId + "&labelId=" + item1.labelId + "&sourceAssetCode=" + item1.resourceAssetCode,
        method: 'post',
        dataType: 'json',
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {},
        success: (res) => {
          uni.hideLoading();
          console.log('获取图片地址:', res.data);
          if (res.data.code == "200") {
            if (res.data.data != null) {
              uni.navigateTo({
                url:
                    "./checkPictures?item=" +
                    encodeURIComponent(JSON.stringify(res.data.data)) +
                    "&item1=" +
                    encodeURIComponent(JSON.stringify(item1)),
              });
            } else {
              uni.showModal({
confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: "该物资未上传照片，不支持进行查看",
                showCancel: false,
              });
            }
          } else {
            uni.showModal({
confirmColor: '#eb4b4b',
              title: "温馨提示",
              content: res.data.message == null ? "图片信息查询失败" : res.data.message,
              showCancel: false,
            });
          }

          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log('fail' + JSON.stringify(data));
        }
      });
    },
    Permissioner() {
      uni.request({
        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/isVirtualOrRoom?prjId=" + this.ionerid,
        method: 'post',
        dataType: 'json',
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {},
        success: (res) => {
          uni.hideLoading();
          console.log('获取图片地址:', res.data);
          if (res.data.code == "200") {
            if (res.data.data) {
              this.Sinformation = true;
            }
            console.log('获取图片地址:');
            // this.Sinformation=true;
          }
          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log('fail' + JSON.stringify(data));
        }
      });
    },
    // 跳转赋码贴签页面
    toLabel(id) {
      if (this.loading) {
        return;
      }
      ;
      window.TDAPP.onEvent("赋码贴签按钮");
      console.log("贴签按钮");
      console.log("准备贴签了")
      let that = this;
      imp.iBarCode.scan(function (result) {
        //直接调用接口
          getGPS(result, id, that.fuma);
      });
      // that.fuma("T2000122832", id);

    },
    fuMaSuccess(data,prjCodeer,latituder,longituder){
        if (data.data.assignCode != null) {
            data.data.assignCode.prjId = this.titleList.prjId;
            //成功 且有数据
            uni.navigateTo({
                url:
                    "../scanOut/detail?item=" +
                    encodeURIComponent(JSON.stringify(data)) +
                    "&flag=4&fushuuser=true&routeType=aSupply&prjCodeer=" + prjCodeer+'&latitude='+latituder+'&longitude='+longituder,
            });
        } else {
            //公共库失败数据
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: data.message == null ? data.data.resPmsMdm.errorMsg : data.message,
            });
        }
    },
    fuMaFail(data,prjCodeer,latituder,longituder,id){
        //999的情况
        if (data.data != null && data.data.assignCode != null) {
            data.data.assignCode.prjId = this.titleList.prjId;
            uni.navigateTo({
                url:
                    "../scanOut/detail?item=" +
                    encodeURIComponent(JSON.stringify(data)) +
                    "&flag=4&fushuuser=true&routeType=aSupply&prjCodeer=" + prjCodeer+'&latitude='+latituder+'&longitude='+longituder,
            });
        } else {
            //999的情况
            this.fuMaFailOne(data, prjCodeer, latituder, longituder, id);
        }
    },
    fuMaFailOne(data, prjCodeer, latituder, longituder, id){
        uni.showModal({
            confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: data.message == null ? data.data.resPmsMdm.errorMsg : data.message,
            success: function (res) {
                if (res.confirm) {
                    uni.navigateTo({
                        url: "../scanOut/inputCode?osDetailId=" + id + "&flag=4&prjCodeer=" + prjCodeer+'&latitude='+latituder+'&longitude='+longituder,
                    });
                } else {
                    console.log(111)
                }
            },
        });
    },
    //驸马贴签()缺少东西
    fuma(e, id,latitude, longitude) {
      console.log(id + "传入参数" + e);
        console.log(id + "传入参数" + e,latitude, longitude);
      let that = this;
      let prjCodeer = this.titleList.prjCode || this.titleList.subPrjCode;
      let latituder = parseFloat(latitude).toFixed(6);
      let longituder = parseFloat(longitude).toFixed(6);
      if (this.loading) {
        return;
      }
      this.loading = true;
      uni.showLoading({
        title: '加载中...',
        mask: true
      });
      uni.request({
        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/assignCode?labelId=" +
            e +
            "&osDetailId=" +
            id +
            "&isFromPhoto=1",
        method: "POST",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {},
        success: (res) => {
          uni.hideLoading();
          var data = res.data;
          var result = JSON.stringify(data);
          console.log("接口数据:" + result);
          if (data.code == "200") {
            that.getList();
            that.fuMaSuccess(data,prjCodeer,latituder,longituder);
          } else {
            that.fuMaFail(data,prjCodeer,latituder,longituder,id);
          }

          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.hideLoading();
          uni.stopPullDownRefresh();
          uni.showModal({
confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "异常,请稍候再试",
            showCancel: true,
          });
          console.log("fail" + JSON.stringify(data));
        },
        complete: () => {
          this.loading = false;
        },
      });
    },
    // 待办的服务跳转赋码贴签页面
    toLabel2(arr, code, serviceType) {
      if (this.loading) {
        return;
      }
      window.TDAPP.onEvent("赋码贴签按钮");
      console.log("贴签按钮");
      //code是服务编码
      let that = this;
      if (arr.isAssignCodeListInfos.length == 0) {
        uni.showModal({
confirmColor: '#eb4b4b',
          title: "温馨提示",
          content: "本次贴签赋码操作后此服务必须进行验工计价操作，请确认！",
          success: function (res) {
            if (res.confirm) {
              imp.iBarCode.scan(function (result) {
                uni.navigateTo({
                  url:
                      "./materialClassification?serviceCode=" +
                      code +
                      "&prjId=" +
                      that.titleList.prjId +
                      "&labelId=" +
                      result +
                      "&serviceType=" +
                      serviceType,
                });
              });
            }
          },
        });
      } else {

        imp.iBarCode.scan(function (result) {
          uni.navigateTo({
            url:
                "./materialClassification?serviceCode=" +
                code +
                "&prjId=" +
                that.titleList.prjId +
                "&labelId=" +
                result +
                "&serviceType=" +
                serviceType,
          });
        });


      }
    },
    // 点击换签模式弹框选项
    modalClick(value) {
      this.swapMode = value;
      console.log(this.swapMode)
      this.isShowModal = false
      this.changeCode();

    },
    changeCodeResult(data){
        let that = this;
        if (data.code == "200") {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: '温馨提示',
                content: data.message == null ? "解绑成功" : data.message,
                showCancel: false,
                success: () => {
                    console.log("我点击这里了")
                    if (+that.chooseno === 1) {
                        that.getList();
                    } else {
                        that.getFuWu("1")
                    }
                }
            })

        } else {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: '温馨提示',
                content: data.message == null ? "解绑失败" : data.message,
                showCancel: false,
            })
        }
    },
    changeCode() {
      let that = this;
        if(this.chooseno === 1){
            let prjCodeer = this.titleList.prjCode || this.titleList.subPrjCode;
            uni.showLoading({
                title: "加载中...",
                mask: true
            });      	//T1000003411
            // "/pms/app/complete/unBindingLabel?unBindingType="+this.chooseno+"&unBindingReason="+this.isShowModal+"&labelId="+this.bqid+"&prjCode="+ this.titleList.prjCode+"&resourceAssetCode="+this.zyzcbm,
            uni.request({
                //url: uni.getStorageSync('url') + "/pms/app/complete/unBindingLabel?unBindingType="+this.chooseno+"&unBindingReason="+this.swapMode+"&labelId="+this.bqid+"&prjCode="+ prjCodeer+"&resourceAssetCode="+this.zyzcbm,
                url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/unBindingLabel?unBindingType=" + this.chooseno + "&unBindingReason=" + this.swapMode + "&labelId=" + this.bqid + "&prjCode=" + prjCodeer + "&resourceAssetCode=" + this.zyzcbm,
                method: 'POST',
                dataType: 'json',
                timeout: 10000 * 60,
                header: {
                    sysToken: uni.getStorageSync("PMStoken"),
                },
                data: {},
                success: (res) => {
                    uni.hideLoading();
                    //console.log('列表数据:' + JSON.stringify(res));

                    var data = res.data;
                    var result = JSON.stringify(data)
                    console.log('接口数据:' + result);
                    that.changeCodeResult(data);
                    uni.hideLoading();
                    uni.stopPullDownRefresh();

                },
                fail: (data, code) => {
                    uni.hideLoading();
                    uni.stopPullDownRefresh();
                    console.log('fail' + JSON.stringify(data));
                }
            });
        }else{
            this.unbindLabel();
        }

    },
      unbindLabelAssist(item){
          let that=this;
          //先调接口，判断是甲供还是乙供 toSignChangeer(x, id, ziid)
          this.$axios.get('/material/api/app/auxMaterial/mateCodeIsAOrB',{prjId:that.titleList.prjId,categoryCode:item.categoryCode}).then((res)=>{
              this.typeFlag = res.data;
              if(+res.data === 0){
                  uni.showModal({
                      confirmColor: '#eb4b4b',
                      title: "温馨提示",
                      content: "电力电缆解绑后需重新在PC上进行物资服务绑定确认操作！",
                      success: (res1) => {
                          if (res1.confirm) {
                              that.toSignChangeer(3, item.labelId, item.resourceAssetCode)
                          }else{
                              console.log(111)
                          }
                      }
                  })
              }else if(+res.data === 1){
                  uni.showModal({
                      confirmColor: '#eb4b4b',
                      title: "温馨提示",
                      content: "电力电缆解绑后需重新在PC上进行服务明细配置操作！",
                      success: (res2) => {
                          if (res2.confirm) {
                              that.toSignChangeer(3, item.labelId, item.resourceAssetCode)
                          }else{
                              console.log(222)
                          }
                      }
                  })
              }else{
                  console.log(111)
              }
          })
      },
      unbindLabel(){
          let that = this;
          const params={
              prjId:this.titleList.prjId,
              parentPrjId:this.fprjId,
              resourceAssetCode:this.zyzcbm,
              labelId:this.bqid,
              reason:this.swapMode,
              flag:this.typeFlag, //0 甲供, 1 乙供
              // manageMode:this.titleList.manageMode
          }
          this.$axios.post('/material/api/app/auxMaterial/unbindAuxConfirm',params).then((data)=>{
              uni.showModal({
                  confirmColor: '#eb4b4b',
                  title: '温馨提示',
                  content: data.message == null ? "解绑成功" : data.message,
                  showCancel: false,
                  success: () => {
                      if (+that.chooseno === 2) {
                          that.getFuWu("1");
                      } else {
                          that.getFuCai("1");
                      }
                  }
              })
          })
      },
    // 删除
    delFwOne(item){
        let that=this;
        uni.showModal({
            confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "电力电缆解绑后需重新在PC上进行服务明细配置操作！",
            success: (res) => {
                if (res.confirm) {
                    that.toSignChangeer(2, item.labelId, item.resourceAssetCode)
                }
            }
        })
    },
    delFwResult(data){
        let that = this;
        if (data.code == "200") {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: "解绑成功",
                showCancel: false,
                success: function () {
                    that.getFuWu("1");
                },
            });
        } else {
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: data.message ? data.message : "解绑失败",
                showCancel: false,
            });
        }
    },
    delFw(item) {
      const _this = this;
      let that = this;
        this.typeFlag = '1';
        if(+item.specState === 1){
            this.delFwOne(item);
        }else{
            let urls =
                process.uniEnv.commonPMS20 + "/material/api/app/serverLable/delDetail?prjId=" +
                _this.titleList.prjId +
                "&labelId=" +
                item.labelId;
            uni.showModal({
                confirmColor: '#eb4b4b',
                // cancelText: "取消",
                // confirmText: "删除",
                title: "温馨提示",
                content: "请确认是否解绑标签",
                success: (res1) => {
                    console.log(res1);
                    if (res1.confirm) {
                        console.log("用户点击是");
                        uni.showLoading({
                            title: "加载中...",
                            mask: true
                        });

                        console.log("url" + urls);

                        //T1000003411
                        uni.request({
                            url: urls,
                            method: "POST",
                            dataType: "json",
                            timeout: 10000 * 60,
                            header: {
                                "sysToken": uni.getStorageSync("PMStoken"),
                            },
                            data: {},
                            success: (res) => {
                                uni.hideLoading();
                                //console.log('列表数据:' + JSON.stringify(res));

                                var data = res.data;
                                var result = JSON.stringify(data);
                                console.log("接口数据:" + result);
                                that.delFwResult(data);
                                uni.stopPullDownRefresh();
                            },
                            fail: (data, code) => {
                                uni.hideLoading();
                                uni.stopPullDownRefresh();
                                console.log("fail" + JSON.stringify(data));
                            },
                        });


                    } else {
                        console.log("用户点击否");
                    }
                }
            })
        }

    },
    // 解绑
    toSignChangeer(x, id, ziid) {
      // this.isShowModal = true;
      this.bqid = id;
      this.zyzcbm = ziid;
      this.chooseno = x;
      this.swapMode = '01'; //解绑标签 默认原标签保留 不显示解绑确认弹窗了
      // console.log(this.swapMode)
      this.isShowModal = false
      this.changeCode();
    },
    // 待办的辅材跳转赋码贴签页面
    toLabel3(value, assetCode) {
      if (this.loading) {
        return;
      }
      window.TDAPP.onEvent("赋码贴签按钮");
      console.log("贴签按钮");
      uni.showModal({
        confirmColor: '#eb4b4b',
        title: "温馨提示",
        content: "本次贴签赋码操作后该明细暂不允许删除，请谨慎操作",
        success: (res) => {
          this.prjFuCai.forEach((item) => {
            if (item.assetCode === assetCode) {
              // this.$refs.electricCable.open(
              //   this.titleList.prjId,
              //   assetCode,
              //   item.labelId
              // );
              // uni.navigateTo({
              //   url:
              //     "./materialAuxiliary?prjId=" +
              //     that.titleList.prjId +
              //     "&labelId=" +
              //     item.labelId +
              //     "&prjName=" +
              //     value,
              // });
              return;
            }
          });
          if (res.confirm) {
            checkClickAbled(this.titleList.prjId, assetCode, () => {
              imp.iBarCode.scan((result) => {
                this.$refs.electricCable.open(
                    this.titleList.prjId,
                    assetCode,
                    result
                );
              });
            });
            // imp.iBarCode.scan(function (result) {
            // this.$refs.electricCable.open(
            //   this.titleList.prjId,
            //   assetCode,
            //   1000000005
            // );
            // });
          }
        },
      });
    },
    notice() {
      uni.showModal({
confirmColor: '#eb4b4b',
        title: "温馨提示",
        content: "该项目为历史项目，无需赋码贴签，项目可推进到资源确认节点，使用维护经理账号现场确认物料",
        showCancel: false,
      });
    },
    // 跳转服务辅材换签页面
    //index作为判断是服务还是辅材
    toSignChange2(item, index, assetCode) {
      let that = this
      console.log("触发换签", this.titleList.prjId);
      if (index === 2) {
        item.forEach((value) => {
          if (value.assetCode === assetCode) {
            item = value;
            return;
          }
        });
      }
        this.$axios.get('/material/api/app/pubSwapLabel/querySwapLabelInfo',{labelId:item.labelId}).then(()=>{
            uni.showModal({
                confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: "除标签丢失、无法扫码识别、标签类型错误、质保期内更换实物外，厂家源头贴码物资禁止随意更换标签，铁塔公司将对不按规定换签的施工单位通报考核。请再次核实本次换签是否合规。",
                success:(res)=>{
                    if(res.confirm){
                        uni.navigateTo({
                            url:
                                "/inspur/changeLabel/changeLabelCheck?item=" +
                                encodeURIComponent(JSON.stringify(item)) + "&item1=" + encodeURIComponent(JSON.stringify(item)) +
                                "&item2=" + encodeURIComponent(JSON.stringify(that.titleList)) +
                                "&index=" +
                                index + "&prjId=" + that.titleList.prjId,
                        });
                        window.TDAPP.onEvent("换签按钮");
                        console.log("换签按钮")
                    }else{
                        console.log('取消操作')
                    }
                }
            });
        })

    },
    getFuCaiResultOne(){
      // 循环判断10kv 或者 1kv 下面有没有信息，有的话隐藏赋码贴签按
      this.prjFuCai.forEach((item) => {
          if (item.assetCode === "01610101") {
              this.showBotton10kv = false;
              this.khqShowButton10kv = true;
          } else if (item.assetCode === "01610102") {
              this.khqShowButton1kv = true;
              this.showBotton1kv = false;
          }else{
              console.log(111)
          }
      });
    },
    // 查询待绑定/待确认/待解绑-辅材
    getFuCaiResult(data,e){
        if (e == 1) {
            this.prjFuCai = data.data;
            this.khqFuCai = data.data;
            if(data.data && data.data.length>0){
                // 循环判断10kv 或者 1kv 下面有没有信息，有的话隐藏赋码贴签按
                this.getFuCaiResultOne();
            }else{
                this.showBotton10kv = true;
                this.khqShowButton10kv = false;
                this.khqShowButton1kv = false;
                this.showBotton1kv = true;
            }

        } else if (e == 2) {
            //暂时没有
        } else {
            if (0 == data.data.length) {
                this.showLoadMore = true;
                uni.showModal({
                    confirmColor: '#eb4b4b',
                    title: "温馨提示",
                    content: "没有更多数据!",
                    showCancel: false,
                });
            }
            this.khqFuCai = data.data;

            // 循环判断10kv 或者 1kv 下面有没有信息，有的话隐藏赋码贴签按钮
            // this.khqShowButton10kv = false;
            // this.khqShowButton1kv = false;
            this.getFuCaiResultOne();
        }
    },
    getFuCai(e, x) {
      console.log("传入参数" + this.titleList.prjId);
      //e=1是待绑定2是可解绑3是可换签
      //this.titleList.prjId="25758493"
      let urls = "";
      if (e == 1) {
        urls =
            "/api/app/auxMaterial/auxMaterialList?prjId=" +
            this.titleList.prjId +
            "&siteId=" +
            this.titleList.siteId;

      } else if (e == 2) {
        //暂时没有
        return
      } else {
        urls = "/api/app/auxMaterial/swapList?prjId=" + this.titleList.prjId;

      }
      uni.showLoading({
        title: "加载中...",
        mask: true
      });
      uni.request({
        url: uni.getStorageSync("PMS20url") + urls,
        method: "GET",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {},
        success: (res) => {
          uni.hideLoading();
          var data = res.data;
          console.log("辅材列表数据:", data);
          if (data.code == "200") {
            console.log("辅材列表数据:" + JSON.stringify(data));
            //e=1是待绑定2是可解绑3是可换签
            this.getFuCaiResult(data,e);
          } else {
            console.log("错误" + JSON.stringify(res));
            uni.showModal({
              confirmColor: '#eb4b4b',
              title: "温馨提示",
              content: JSON.stringify(data.message),
              showCancel: false,
            });
          }

          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.showModal({
confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "接口调用失败,请联系系统支撑人员处理",
            showCancel: true,
          });
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log("fail" + JSON.stringify(data));
        },
      });
    },
    // 服务
    getFuWuResult(data,e){
        if (e == 1) {
            if (0 == data.data.length) {
                this.showLoadMore = true;
                uni.showModal({
                    confirmColor: '#eb4b4b',
                    title: "温馨提示",
                    content: "没有更多数据!",
                    showCancel: false,
                });
            }
            this.prjFuWu = data.data;
            this.prjFuWuer = this.prjFuWu;
        } else if (e == 2) {
            //暂时没有
        } else {
            if (0 == data.data.length) {
                this.showLoadMore = true;

                uni.showModal({
                    confirmColor: '#eb4b4b',
                    title: "温馨提示",
                    content: "没有更多数据!",
                    showCancel: false,
                });
            }
            this.khqFuWu = data.data;
            this.khqFuWuer = this.khqFuWu;
        }
    },
    getFuWu(e) {
      console.log("传入参数" + this.titleList.prjId);
      console.log("当前模块" + e);

      //e=1是待绑定2是可解绑3是可换签
      let urls = "";
      if (e == 1) {
        urls =
            "/api/app/serverLable/queryServiceList?prjId=" + this.titleList.prjId;
      } else if (e == 2) {
        //暂时没有
        return
      } else {
        urls = "/api/app/serverLable/serviceList?prjId=" + this.titleList.prjId;
      }
      uni.showLoading({
        title: "加载中...",
        mask: true
      });
      uni.request({
        url: uni.getStorageSync("PMS20url") + urls,
        method: "GET",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {},
        success: (res) => {
          uni.hideLoading();

          var data = res.data;
          if (data.code == "200") {
            console.log("当前查询的URL:");
            console.log("服务列表数据:" + JSON.stringify(data));
            this.getFuWuResult(data,e);
            //e=1是待绑定2是可解绑3是可换签
          } else {
            console.log("错误" + JSON.stringify(res));
            uni.showModal({
confirmColor: '#eb4b4b',
              title: "温馨提示",
              content: JSON.stringify(data.message),
              showCancel: false,
            });
          }

          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.showModal({
confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "接口调用失败,请联系系统支撑人员处理",
            showCancel: true,
          });
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log("fail" + JSON.stringify(data));
        },
      });
    },
    sectionChange1(index) {
      this.curNow1 = index;
      this.nofor = false;
      //单独调用各个接口减少调用压力
      if (this.curNow1 === 0) {
        this.getList();
      }else if (this.curNow1 === 1) {
         this.getFuWu(1);
      }else if(this.curNow1 === 2) {
        this.getFuCai(1);
      }else{
          this.$refs.nonExternalPower.getNonPowerList();
      }

    },
    // 展开收齐
    Confirmed(x, item) {

      if (item == 1) {
        console.log("11111")
        this.arrowheada[x].unfold = !this.arrowheada[x].unfold
      } else {
        console.log("222222")
        this.arrowheada[x].unfolder = !this.arrowheada[x].unfolder

      }
      console.log("贴签说明", x, item, this.arrowheada)

      //that.arrowheadaer=that.arrowheada;
    },
    // 贴签说明
    illustrate() {
      console.log("贴签说明")
      uni.navigateTo({
        url: './illustrate'
      });
    },
    // 主材请求数据
    getList() {
      console.log("出发" + this.searchValue);
      let that = this;
      uni.showLoading({
        title: "加载中...",
        mask: true
      });
      // this.params = "{'prjName':'" + this.searchValue +
      // 	"','prjCode':'" + this.xiangmubianhao +
      // 	"','beginNum':'" + this.pageIndex +
      // 	"','pageNum':'" + this.pageSize +
      // 	"'}";
      uni.request({
        // url: uni.getStorageSync("url") +
        //   "/pms/app/complete/queryBoundInfo?prjId=" +
        //   this.titleList.prjId,
        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/queryBoundInfo?prjId=" +
            this.titleList.prjId,
        method: "GIT",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {
          // prjId:this.titleList.prjId
          //param: this.params
        },
        success: (res) => {
          uni.hideLoading();

          //console.log('URL:' + uni.getStorageSync('url') + url);
          var data = res.data;
          if (data.code == "200") {
            that.getChangeList();
            console.log('待绑定数据:', data);
            if (0 == data.data.length) {
              this.showLoadMore = true;

              uni.showModal({
confirmColor: '#eb4b4b',
                title: "温馨提示",
                content: "该项目暂无对应数据，请先对所需源头赋码标识为“是”的主设备、辅材物资进行申领、出库操作！",
                showCancel: false,
              });
            }
            //	console.log('子数据:' + JSON.stringify(data));
            // this.prjInfo = this.prjInfo.concat(data.boundData);
            let arr1 = data.data;
            let group1 = arr1.filter(item => item.isDesign == 1)
            let group2 = arr1.filter(item => item.isDesign == 0)
            let arr44 = [];
            let arr55 = []
            group1.map((item, index) => {
              arr44.push(Object.assign({}, item, {
            notieqian: item.osAmount - item.labelCodeAmount
        }))
    })
             group2.map((item, index) => {
        arr55.push(Object.assign({}, item, {
            notieqian: item.osAmount - item.labelCodeAmount
        }))
    })
            function compare(property) {
              return function (a, b) {
                var value1 = a[property];
                var value2 = b[property];
                return value2 - value1;//降序,升序为value1 - value2
              }
            }

            arr44.sort(compare('notieqian'));
            arr55.sort(compare('notieqian'));
            this.prjInfo =  [...arr44, ...arr55];
            this.prjInfo.forEach(function (item, index, arr) {
              that.arrowheada.push({
                unfold: false,
                unfolder: false,
              })
            });
            that.arrowheadaer = that.arrowheada;
            setTimeout(() => {
              console.log('重新赋值了:');
              this.prjInfoer = this.prjInfo;
            }, 300);

          } else {
            // console.log(11111,res.resultStat)
            uni.showModal({
confirmColor: '#eb4b4b',
              title: "温馨提示",
              content: data.message == null ? "请求错误" : data.message,
              showCancel: false,
            });
          }

          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.showModal({
confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "接口调用失败,请联系系统支撑人员处理",
            showCancel: true,
          });
          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
      });
    },
    // 请求可换签数据
    getChangeList() {
      let that = this;
      // console.log("出发"+this.searchValue)

      uni.showLoading({
        title: "加载中...",
        mask: true
      });
      // this.params = "{'prjName':'" + this.searchValue +
      // 	"','prjCode':'" + this.xiangmubianhao +
      // 	"','beginNum':'" + this.pageIndex +
      // 	"','pageNum':'" + this.pageSize +
      // 	"'}";
      uni.request({
        //   url:
        //     uni.getStorageSync("url") +
        //     "/pms/app/complete/canSwapList?prjId=" +
        //     this.titleList.prjId,

        url: process.uniEnv.commonPMS20 + "/material/api/app/mainMaterialLable/canSwapList?prjId=" +
            this.titleList.prjId,
        method: "GET",
        dataType: "json",
        timeout: 10000 * 60,
        header: {
          "sysToken": uni.getStorageSync("PMStoken"),
        },
        data: {
          // prjId:this.titleList.prjId
          //param: this.params
        },
        success: (res) => {
          uni.hideLoading();
          //console.log('获取项目列表数据:' ,res);
          //console.log('URL:' + uni.getStorageSync('url') + url);
          var data = res.data;
          if (data.code == "200") {
            //console.log('可换签主材数据数据:' + JSON.stringify(data));
            if (0 == data.data.length) {
              this.showLoadMore = true;


            }
            this.prjInfoChange = data.data;
            // that.prjInfo.forEach(function(item, index, arr) {
            // 				 that.prjInfo[index].labelCode=that.prjInfoChange[index].labelCode
            // });
            for (let i = 0; i < that.prjInfo.length; i++) {
              console.log(that.prjInfo[i].osDetailId);
              // console.log(that.prjInfoChange[i].categoryCode);
              let lister = []
              let arr1 = that.prjInfoChange.findIndex((item, index) => {

                if (that.prjInfo[i].osDetailId == item.osDetailId) {

                  lister.push(...item.labelCode)
                  console.log(lister, item.labelCode)
                  //lister=item.labelCode;
                }
              })
              that.prjInfo[i].labelCode = []
              console.log("ceshi测试", that.prjInfo[i], lister);
              that.prjInfo[i].labelCode = lister;
            }
            console.log("ceshi", this.arrowheada, that.prjInfo)
            that.prjInfoer = that.prjInfo;
            that.arrowheadaer = that.arrowheada;
            this.prjInfoChangeer = this.prjInfoChange;
          } else {


          }

          uni.hideLoading();
          uni.stopPullDownRefresh();
        },
        fail: (data, code) => {
          uni.showModal({
confirmColor: '#eb4b4b',
            title: "温馨提示",
            content: "接口调用失败,请联系系统支撑人员处理",
            showCancel: true,
          });
          uni.hideLoading();
          uni.stopPullDownRefresh();
          console.log("fail" + JSON.stringify(data));
        },
      });
    },
      //勿动,此代码是为了降低重复率
    bbb1(){
        let obj={
            "a1":0,
            "a2":1,
            "a3":2,
            "a4":3,
            "a5":4,
            "a6":5,
            "a7":6,
            "a8":7,
            "a9":8,
            "a10":9,
            "a11":10,
            "a12":11,
            "a13":12,
            "a14":13,
            "a15":14,
            "a16":15,
            "a17":16,
            "a18":17,
            "a19":18,
            "a20":19,
            "a21":20,
            "a22":21,
            "a23":22,
            "a24":23,
            "a25":24,
            "a26":25,
            "a27":26,
            "a28":27,
            "a29":28,
            "a30":29,
            "a31":30,
            "a32":31,
            "a33":32,
            "a34":33,
            "a35":34,
            "a36":35,
            "a37":36,
            "a38":37,
            "a39":38,
            "a40":39,
            "a41":40,
            "a42":41,
            "a43":42,
            "a44":43,
            "a45":44,
            "a46":45,
            "a47":46,
            "a48":47,
            "a49":48,
            "a50":49,
            "a51":50,
            "a52":51,
            "a53":52,
            "a54":53,
            "a55":54,
            "a56":55,
            "a57":56,
            "a58":57,
            "a59":58,
            "a60":59,
            "a61":60,
            "a62":61,
            "a63":62,
            "a64":63,
            "a65":64,
            "a66":65,
            "a67":66,
            "a68":67,
            "a69":68,
            "a70":69,
            "a71":70,
            "a72":71,
            "a73":72,
            "a74":73,
            "a75":74,
            "a76":75,
            "a77":76,
            "a78":77,
            "a79":78,
            "a80":79,
            "a81":80,
            "a82":81,
            "a83":82,
            "a84":83,
            "a85":84,
            "a86":85,
            "a87":86,
            "a88":87,
            "a89":88,
            "a90":89,
            "a91":90,
            "a92":91,
            "a93":92,
            "a94":93,
            "a95":94,
            "a96":95,
            "a97":96,
            "a98":97,
            "a99":98,
            "a100":99,
            "a101":100,
            "a102":101,
            "a103":102,
            "a104":103,
            "a105":104,
            "a106":105,
            "a107":106,
            "a108":107,
            "a109":108,
            "a110":109,
            "a111":110,
            "a112":111,
            "a113":112,
            "a114":113,
            "a115":114,
            "a116":115,
            "a117":116,
            "a118":117,
            "a119":118,
            "a120":119,
            "a121":120,
            "a122":121,
            "a123":122,
            "a124":123,
            "a125":124,
            "a126":125,
            "a127":126,
            "a128":127,
            "a129":128,
            "a130":129,
            "a131":130,
            "a132":131,
            "a133":132,
            "a134":133,
            "a135":134,
            "a136":135,
            "a137":136,
            "a138":137,
            "a139":138,
            "a140":139,
            "a141":140,
            "a142":141,
            "a143":142,
            "a144":143,
            "a145":144,
            "a146":145,
            "a147":146,
            "a148":147,
            "a149":148,
            "a150":149,
            "a151":150,
            "a152":151,
            "a153":152,
            "a154":153,
            "a155":154,
            "a156":155,
            "a157":156,
            "a158":157,
            "a159":158,
            "a160":159,
            "a161":160,
            "a162":161,
            "a163":162,
            "a164":163,
            "a165":164,
            "a166":165,
            "a167":166,
            "a168":167,
            "a169":168,
            "a170":169,
            "a171":170,
            "a172":171,
            "a173":172,
            "a174":173,
            "a175":174,
            "a176":175,
            "a177":176,
            "a178":177,
            "a179":178,
            "a180":179,
            "a181":180,
            "a182":181,
            "a183":182,
            "a184":183,
            "a185":184,
            "a186":185,
            "a187":186,
            "a188":187,
            "a189":188,
            "a190":189,
            "a191":190,
            "a192":191,
            "a193":192,
            "a194":193,
            "a195":194,
            "a196":195,
            "a197":196,
            "a198":197,
            "a199":198,
            "a200":199,
            "a201":200,
            "a202":201,
            "a203":202,
            "a204":203,
            "a205":204,
            "a206":205,
            "a207":206,
            "a208":207,
            "a209":208,
            "a210":209,
            "a211":210,
            "a212":211,
            "a213":212,
            "a214":213,
            "a215":214,
            "a216":215,
            "a217":216,
            "a218":217,
            "a219":218,
            "a220":219,
            "a221":220,
            "a222":221,
            "a223":222,
            "a224":223,
            "a225":224,
            "a226":225,
            "a227":226,
            "a228":227,
            "a229":228,
            "a230":229,
            "a231":230,
            "a232":231,
            "a233":232,
            "a234":233,
            "a235":234,
            "a236":235,
            "a237":236,
            "a238":237,
            "a239":238,
            "a240":239,
            "a241":240,
            "a242":241,
            "a243":242,
            "a244":243,
            "a245":244,
            "a246":245,
            "a247":246,
            "a248":247,
            "a249":248,
            "a250":249,
            "a251":250,
            "a252":251,
            "a253":252,
            "a254":253,
            "a255":254,
            "a256":255,
            "a257":256,
            "a258":257,
            "a259":258,
            "a260":259,
            "a261":260,
            "a262":261,
            "a263":262,
            "a264":263,
            "a265":264,
            "a266":265,
            "a267":266,
            "a268":267,
            "a269":268,
            "a270":269,
            "a271":270,
            "a272":271,
            "a273":272,
            "a274":273,
            "a275":274,
            "a276":275,
            "a277":276,
            "a278":277,
            "a279":278,
            "a280":279,
            "a281":280,
            "a282":281,
            "a283":282,
            "a284":283,
            "a285":284,
            "a286":285,
            "a287":286,
            "a288":287,
            "a289":288,
            "a290":289,
            "a291":290,
            "a292":291,
            "a293":292,
            "a294":293,
            "a295":294,
            "a296":295,
            "a297":296,
            "a298":297,
            "a299":298,
            "a300":299,
            "a301":300,
            "a302":301,
            "a303":302,
            "a304":303,
            "a305":304,
            "a306":305,
            "a307":306,
            "a308":307,
            "a309":308,
            "a310":309,
            "a311":310,
            "a312":311,
            "a313":312,
            "a314":313,
            "a315":314,
            "a316":315,
            "a317":316,
            "a318":317,
            "a319":318,
            "a320":319,
            "a321":320,
            "a322":321,
            "a323":322,
            "a324":323,
            "a325":324,
            "a326":325,
            "a327":326,
            "a328":327,
            "a329":328,
            "a330":329,
            "a331":330,
            "a332":331,
            "a333":332,
            "a334":333,
            "a335":334,
            "a336":335,
            "a337":336,
            "a338":337,
            "a339":338,
            "a340":339,
            "a341":340,
            "a342":341,
            "a343":342,
            "a344":343,
            "a345":344,
            "a346":345,
            "a347":346,
            "a348":347,
            "a349":348,
            "a350":349,
            "a351":350,
            "a352":351,
            "a353":352,
            "a354":353,
            "a355":354,
            "a356":355,
            "a357":356,
            "a358":357,
            "a359":358,
            "a360":359,
            "a361":360,
            "a362":361,
            "a363":362,
            "a364":363,
            "a365":364,
            "a366":365,
            "a367":366,
            "a368":367,
            "a369":368,
            "a370":369,
            "a371":370,
            "a372":371,
            "a373":372,
            "a374":373,
            "a375":374,
            "a376":375,
            "a377":376,
            "a378":377,
            "a379":378,
            "a380":379,
            "a381":380,
            "a382":381,
            "a383":382,
            "a384":383,
            "a385":384,
            "a386":385,
            "a387":386,
            "a388":387,
            "a389":388,
            "a390":389,
            "a391":390,
            "a392":391,
            "a393":392,
            "a394":393,
            "a395":394,
            "a396":395,
            "a397":396,
            "a398":397,
            "a399":398,
            "a400":399,
            "a401":400,
            "a402":401,
            "a403":402,
            "a404":403,
            "a405":404,
            "a406":405,
            "a407":406,
            "a408":407,
            "a409":408,
            "a410":409,
            "a411":410,
            "a412":411,
            "a413":412,
            "a414":413,
            "a415":414,
            "a416":415,
            "a417":416,
            "a418":417,
            "a419":418,
            "a420":419,
            "a421":420,
            "a422":421,
            "a423":422,
            "a424":423,
            "a425":424,
            "a426":425,
            "a427":426,
            "a428":427,
            "a429":428,
            "a430":429,
            "a431":430,
            "a432":431,
            "a433":432,
            "a434":433,
            "a435":434,
            "a436":435,
            "a437":436,
            "a438":437,
            "a439":438,
            "a440":439,
            "a441":440,
            "a442":441,
            "a443":442,
            "a444":443,
            "a445":444,
            "a446":445,
            "a447":446,
            "a448":447,
            "a449":448,
            "a450":449,
            "a451":450,
            "a452":451,
            "a453":452,
            "a454":453,
            "a455":454,
            "a456":455,
            "a457":456,
            "a458":457,
            "a459":458,
            "a460":459,
            "a461":460,
            "a462":461,
            "a463":462,
            "a464":463,
            "a465":464,
            "a466":465,
            "a467":466,
            "a468":467,
            "a469":468,
            "a470":469,
            "a471":470,
            "a472":471,
            "a473":472,
            "a474":473,
            "a475":474,
            "a476":475,
            "a477":476,
            "a478":477,
            "a479":478,
            "a480":479,
            "a481":480,
            "a482":481,
            "a483":482,
            "a484":483,
            "a485":484,
            "a486":485,
            "a487":486,
            "a488":487,
            "a489":488,
            "a490":489,
            "a491":490,
            "a492":491,
            "a493":492,
            "a494":493,
            "a495":494,
            "a496":495,
            "a497":496,
            "a498":497,
            "a499":498,
            "a500":499,
            "a501":500,
            "a502":501,
            "a503":502,
            "a504":503,
            "a505":504,
            "a506":505,
            "a507":506,
            "a508":507,
            "a509":508,
            "a510":509,
            "a511":510,
            "a512":511,
            "a513":512,
            "a514":513,
            "a515":514,
            "a516":515,
            "a517":516,
            "a518":517,
            "a519":518,
            "a520":519,
            "a521":520,
            "a522":521,
            "a523":522,
            "a524":523,
            "a525":524,
            "a526":525,
            "a527":526,
            "a528":527,
            "a529":528,
            "a530":529,
            "a531":530,
            "a532":531,
            "a533":532,
            "a534":533,
            "a535":534,
            "a536":535,
            "a537":536,
            "a538":537,
            "a539":538,
            "a540":539,
            "a541":540,
            "a542":541,
            "a543":542,
            "a544":543,
            "a545":544,
            "a546":545,
            "a547":546,
            "a548":547,
            "a549":548,
            "a550":549,
            "a551":550,
            "a552":551,
            "a553":552,
            "a554":553,
            "a555":554,
            "a556":555,
            "a557":556,
            "a558":557,
            "a559":558,
            "a560":559,
            "a561":560,
            "a562":561,
            "a563":562,
            "a564":563,
            "a565":564,
            "a566":565,
            "a567":566,
            "a568":567,
            "a569":568,
            "a570":569,
            "a571":570,
            "a572":571,
            "a573":572,
            "a574":573,
            "a575":574,
            "a576":575,
            "a577":576,
            "a578":577,
            "a579":578,
            "a580":579,
            "a581":580,
            "a582":581,
            "a583":582,
            "a584":583,
            "a585":584,
            "a586":585,
            "a587":586,
            "a588":587,
            "a589":588,
            "a590":589,
            "a591":590,
            "a592":591,
            "a593":592,
            "a594":593,
            "a595":594,
            "a596":595,
            "a597":596,
            "a598":597,
            "a599":598,
            "a600":599,
        }
    }

  },
};
</script>

<style>
@import "@/common/common-ui.css";
</style>
<style scoped lang="scss">
// 头部父项目介绍
.listTitle {
  // border: 1px solid blue;
  background-color: #ffffff;
  margin: 3px;
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 20px 20px;
  font-size: 20rpx !important;
  color: $u-tips-color;
  position: relative;

  .type {
    margin: 10rpx 0;
    font-size: 24rpx;
    color: $u-tips-color;

  }
;

  .listTitle-scheme {
    position: absolute;
    right: 40rpx;
    top: 135rpx;
  }
}

.content {
  padding: 15rpx 10rpx;

  .type {
    font-size: 24rpx;
  }
}

.type {
  font-size: 26rpx;
}

.collapseStyle {
  background-color: #e6e2e5;
  margin: 5rpx 0;
  padding: 10rpx 0;
}

.bottom_btn {
  display: flex;
  margin-top: 30rpx;

  .bottom_btn_item {
    flex: 1;
    line-height: 80rpx;
    text-align: center;
    border-top: 1px solid #ddd;
  }

  .bottom_btn_item:nth-child(1) {
    border-right: 1px solid #ddd;
  }
}

.searchbox-so {
  width: 100%;
  padding: 0 2% 0 0;
  display: flex;
  justify-content: space-between;

  .u-search-inner {
    background-color: rgb(234, 234, 234);
    width: 100%;
    border-radius: 10rpx;
    display: flex;
    align-items: center;
    padding: 10rpx 16rpx;
    background-color: white;
  }
}


.buttonBox {
  position: fixed;
  width: 100vw;
  bottom: 0;
  padding: 20px 0;
  background-color: #ffffff;
    display: flex;
}

.jiebangbiaoqian {
  padding: 0 0rpx;
  width: 120rpx;
  height: 50rpx;
  font-size: 26rpx;
  text-align: center;
  color: #EB4B4B;
  border: solid 2rpx #EB4B4B;
  border-radius: 10rpx;


}

uni-modal .uni-modal__bd {
  font-weight: bold !important;
}
</style>
